<template>
	<view>
		<view class="lastbtn" >
			<view class="massifbtn mar-top20" :style="'width:'+width">
				<u-button :color="bgColor" @click="_click">{{ text }}</u-button>
			</view>
		</view>
	</view>
</template>

<script>
export default {
	name: 'uni-lastbtn',
	props: {
		bgColor: {
			type: String,
			default: '#64C533'
		},
		text: {
			type: String,
			default: '按钮'
		},
		width:{
			type:String,
			default:'500rpx'
		}
	},
	data() {
		return {};
	},
	methods: {
		_click() {
			this.$emit('btnfun', this.text);
		}
	}
};
</script>

<style lang="scss">
.lastbtn {
	text-align: center;
	padding-bottom: 10rpx;
	.massifbtn {
		// width: 500rpx;
		display: inline-block;
	}
}
</style>
